#ifndef ORGSERVICE_H
#define ORGSERVICE_H
#include <QObject>
#include <QJsonArray>
#include <QJsonObject>

class OrgService: public QObject
{
    Q_OBJECT
public:
    explicit OrgService(QObject* parent = nullptr);

    Q_INVOKABLE QJsonArray tree();
    Q_INVOKABLE QJsonObject page(QJsonObject sysOrgPageParam);
    Q_INVOKABLE int deleteByIds(QJsonArray sysOrgIdParamList, bool useFill = false);
    Q_INVOKABLE bool deleteById(const QString& id, bool useFill = false);
};

#endif // ORGSERVICE_H
